package com.inspsys.algorithms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.inspsys.algorithms.mapper.AlgorithmsSampleLibraryMapper;
import com.inspsys.algorithms.domain.AlgorithmsSampleLibrary;
import com.inspsys.algorithms.service.IAlgorithmsSampleLibraryService;

/**
 * sampleLibraryService业务层处理
 *
 * @author inspsys
 * @date 2025-01-08
 */
@Service
public class AlgorithmsSampleLibraryServiceImpl implements IAlgorithmsSampleLibraryService
{
    @Autowired
    private AlgorithmsSampleLibraryMapper algorithmsSampleLibraryMapper;

    /**
     * 查询sampleLibrary
     *
     * @param id sampleLibrary主键
     * @return sampleLibrary
     */
    @Override
    public AlgorithmsSampleLibrary selectAlgorithmsSampleLibraryById(Long id)
    {
        return algorithmsSampleLibraryMapper.selectAlgorithmsSampleLibraryById(id);
    }

    /**
     * 查询sampleLibrary列表
     *
     * @param algorithmsSampleLibrary sampleLibrary
     * @return sampleLibrary
     */
    @Override
    public List<AlgorithmsSampleLibrary> selectAlgorithmsSampleLibraryList(AlgorithmsSampleLibrary algorithmsSampleLibrary)
    {
        return algorithmsSampleLibraryMapper.selectAlgorithmsSampleLibraryList(algorithmsSampleLibrary);
    }

    /**
     * 新增sampleLibrary
     *
     * @param algorithmsSampleLibrary sampleLibrary
     * @return 结果
     */
    @Override
    public int insertAlgorithmsSampleLibrary(AlgorithmsSampleLibrary algorithmsSampleLibrary)
    {
        return algorithmsSampleLibraryMapper.insertAlgorithmsSampleLibrary(algorithmsSampleLibrary);
    }

    /**
     * 修改sampleLibrary
     *
     * @param algorithmsSampleLibrary sampleLibrary
     * @return 结果
     */
    @Override
    public int updateAlgorithmsSampleLibrary(AlgorithmsSampleLibrary algorithmsSampleLibrary)
    {
        return algorithmsSampleLibraryMapper.updateAlgorithmsSampleLibrary(algorithmsSampleLibrary);
    }

    /**
     * 批量删除sampleLibrary
     *
     * @param ids 需要删除的sampleLibrary主键
     * @return 结果
     */
    @Override
    public int deleteAlgorithmsSampleLibraryByIds(Long[] ids)
    {
        return algorithmsSampleLibraryMapper.deleteAlgorithmsSampleLibraryByIds(ids);
    }

    /**
     * 删除sampleLibrary信息
     *
     * @param id sampleLibrary主键
     * @return 结果
     */
    @Override
    public int deleteAlgorithmsSampleLibraryById(Long id)
    {
        return algorithmsSampleLibraryMapper.deleteAlgorithmsSampleLibraryById(id);
    }
}
